﻿@using Test_LYK.Models

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>EatLogList</title>
</head>
<body>

<div>
    <table border="1">
        <thead>
        <tr>
            <td>PersonName</td>
            <td>FoodName</td>
            <td>EatTime</td>
            <td>Operation</td>
        </tr>
        </thead>
        @foreach (var eat in ViewBag.EatLogList as List<EatLogModel>)
        {
            <tr>
                <td>@eat.PersonName</td>
                <td>@eat.FoodName</td>
                <td>@eat.CreateOn</td>
                <td><input type="button" value="Hide" onclick="window.location.href = '/EatLog/HideLog?logId=@eat.Id'"/></td>
            </tr>
        }
    </table>
</div>
</body>
</html>
